﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;


public partial class RequestTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RequestCounter counter = RequestCounter.GetCounter("xhan");
        bool canAccess = counter.AddCount();

        Response.Write(canAccess);
        Response.Write(counter.CurrentCount);

        //Stopwatch sw=new Stopwatch();
        //sw.Start();
        //int j = 0;
        //for (int i = 0; i < 10000000000000000; i++)
        //{
        //    j++;
        //}
        //Response.Write(sw.ElapsedMilliseconds);
        //Response.Write(Session.SessionID);
    }
}